package cn.signalpha.modules.com.entity.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 类说明
 *
 * @author signalpha
 */
@Getter
@AllArgsConstructor
public enum LevelSourceEnum {

	/**
	 * 签到
	 */
	SIGN_IN("signIn", "签到"),

	/**
	 * 下单
	 */
	ORDER("order", "下单奖励"),

	/**
	 * 发布论坛
	 */
	SOCIAL("social", "发布种草"),
    ;

    private final String type;
    private final String name;

	public static LevelSourceEnum instance(String type) {
		LevelSourceEnum[] values = LevelSourceEnum.values();
		for (LevelSourceEnum statusEnum : values) {
			if (statusEnum.type.equals(type)) {
				return statusEnum;
			}
		}
		return null;
	}

}
